<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich" template="layout/template.xhtml">

	<ui:define name="body">
    <h:form id="bayiAdresForm">
		<rich:panel styleClass="richPanelYukseklik" >
			<f:facet name="header">Özgeçmiş Bilgileri</f:facet>
			<h:outputText value="İLETİŞİM BİLGİLERİ" styleClass="txtBaslik" />

			<s:decorate id="iLField" template="layout/edit.xhtml">
				<ui:define name="label">İl</ui:define>
				<h:selectOneMenu value="#{kullaniciHome.instance.il}" id="IlID"
					styleClass="comboWidth">
					<s:selectItems var="_il" value="#{illerList.illerList}"
						label="#{_il.ilAdi}" noSelectionLabel="">
					</s:selectItems>
					<s:convertEntity />
					<a:support event="onchange" eventsQueue="q1" reRender="IlceID"
						actionListener="#{kullaniciHome.IlCodeListener}"
						bypassUpdates="true" ajaxSingle="true" requestDelay="100"></a:support>
				</h:selectOneMenu>
			</s:decorate>

			<s:decorate id="ilceField" template="layout/edit.xhtml">
				<ui:define name="label">İlçe</ui:define>
				<h:selectOneMenu value="#{kullaniciHome.instance.ilce}" id="IlceID"
					styleClass="comboWidth">
					<s:selectItems var="_ilce" value="#{kullaniciHome.ilcelerList}"
						label="#{_ilce.ilceAdi}" noSelectionLabel="">
					</s:selectItems>
					<s:convertEntity />
					<a:support event="onchange" eventsQueue="q1" reRender="semtID"
						actionListener="#{kullaniciHome.IlceCodeListener}"
						bypassUpdates="true" ajaxSingle="true" requestDelay="100"></a:support>
				</h:selectOneMenu>
			</s:decorate>

			<s:decorate id="semtField" template="layout/edit.xhtml">
				<ui:define name="label">Semt</ui:define>
				<h:selectOneMenu value="#{kullaniciHome.instance.semt}" id="semtID"
					styleClass="comboWidth">
					<s:selectItems var="_ilce" value="#{kullaniciHome.semtlerList}"
						label="#{_ilce.ilceAdi}" noSelectionLabel="">
					</s:selectItems>
					<s:convertEntity />
				</h:selectOneMenu>
			</s:decorate>


			<s:decorate id="evTelField" template="layout/edit.xhtml">
				<ui:define name="label">Ev Tel.</ui:define>
				<table>
					<tr>
						<td><b> Ülke Kodu</b></td>
						<td><b>Telefon Numarası (2161112233 gibi)</b></td>
					</tr>
					<tr>
						<td><h:inputText id="soyadi" required="true" size="100"
							maxlength="100" value="#{kullaniciHome.instance.soyadi}"
							styleClass="adGenislik" style=" width : 58px;">
							<a:support event="onblur" reRender="evTelField"
								bypassUpdates="true" ajaxSingle="true" />
						</h:inputText></td>
						<td><h:inputText id="soyadi" required="true" size="100"
							maxlength="100" value="#{kullaniciHome.instance.soyadi}"
							styleClass="adGenislik" style=" width : 150px;">
							<a:support event="onblur" reRender="evTelField"
								bypassUpdates="true" ajaxSingle="true" />
						</h:inputText></td>

					</tr>
				</table>

			</s:decorate>

			<s:decorate id="gsm1TelField" template="layout/edit.xhtml">
				<ui:define name="label">Gsm 1</ui:define>
				<table>

					<tr>
						<td><h:inputText id="gsm1ulke" required="true" size="100"
							maxlength="100" value="#{kullaniciHome.instance.telGsm1UlkeKodu}"
							styleClass="adGenislik" style=" width : 58px;">
							<a:support event="onblur" reRender="gsm1TelField"
								bypassUpdates="true" ajaxSingle="true" />
						</h:inputText></td>
						<td><h:inputText id="gsm1" required="true" size="100"
							maxlength="100" value="#{kullaniciHome.instance.telGsm1Numarasi}"
							styleClass="adGenislik" style=" width : 150px;">
							<a:support event="onblur" reRender="gsm1TelField"
								bypassUpdates="true" ajaxSingle="true" />
						</h:inputText></td>

					</tr>
				</table>

			</s:decorate>


			<s:decorate id="gsm2TelField" template="layout/edit.xhtml">
				<ui:define name="label">Gsm 2</ui:define>
				<table>

					<tr>
						<td><h:inputText id="gsm2ulke" required="true"  
						   value="#{kullaniciHome.instance.telGsm2UlkeKodu}"
							styleClass="adGenislik" style=" width : 58px;">
							<a:support event="onblur" reRender="gsm2TelField"
								bypassUpdates="true" ajaxSingle="true" />
						</h:inputText></td>
						<td><h:inputText id="gsm2" required="true"  
							  value="#{kullaniciHome.instance.telGsm2Numarasi}"
							styleClass="adGenislik" style=" width : 150px;">
							<a:support event="onblur" reRender="gsm2TelField"
								bypassUpdates="true" ajaxSingle="true" />
						</h:inputText></td>

					</tr>
				</table>
			</s:decorate>
			
			 <s:decorate id="isTelField" template="layout/edit.xhtml">
                <ui:define name="label">İş Tel</ui:define>
                <table>
                    <tr>
                        <td><h:inputText id="isUlke" required="true"  
                             value="#{kullaniciHome.instance.telIsUlkeKodu}"
                            styleClass="adGenislik" style=" width : 58px;">
                            <a:support event="onblur" reRender="isTelField"
                                bypassUpdates="true" ajaxSingle="true" />
                        </h:inputText></td>
                        <td><h:inputText id="gsm2" required="true" 
                             value="#{kullaniciHome.instance.telIsNumarasi}"
                            styleClass="adGenislik" style=" width : 150px;">
                            <a:support event="onblur" reRender="isTelField"
                                bypassUpdates="true" ajaxSingle="true" />
                        </h:inputText></td>

                    </tr>
                </table>
            </s:decorate>

    <s:decorate id="emailField" template="layout/edit.xhtml">
                <ui:define name="label">Elektronik Posta</ui:define>
                <h:inputText id="eposta" required="true" size="100"
                            maxlength="100" value="#{kullaniciHome.instance.eposta}"
                            styleClass="adGenislik" style=" width : 300px;">
                            <a:support event="onblur" reRender="emailField"
                                bypassUpdates="true" ajaxSingle="true" />
                        </h:inputText>
     </s:decorate>
  
               <s:decorate id="tanidikAdField" template="layout/edit.xhtml">
                <ui:define name="label">Acil Durum Kişi</ui:define>
                <h:inputText id="acilDurumKisi" required="true" size="100"
                            maxlength="100" value="#{kullaniciHome.instance.acilDurumKisi}"
                            styleClass="adGenislik" style=" width : 300px;">
                            <a:support event="onblur" reRender="emailField"
                                bypassUpdates="true" ajaxSingle="true" />
                        </h:inputText>
            </s:decorate>
            
                 <s:decorate id="tanidikTelField" template="layout/edit.xhtml">
                <ui:define name="label">Acil Durum Kişi Tel</ui:define>
                <table>

                    <tr>
                        <td><h:inputText id="acilUlke" required="true" size="100"
                            maxlength="100" value="#{kullaniciHome.instance.acilDurumKisiTelUlkeKodu}"
                             style=" width : 58px;">
                            <a:support event="onblur" reRender="tanidikTelField"
                                bypassUpdates="true" ajaxSingle="true" />
                        </h:inputText></td>
                        <td><h:inputText id="acilTel" required="true" size="100"
                            maxlength="100" value="#{kullaniciHome.instance.acilDurumKisiTelNumarasi}"
                              style=" width : 150px;">
                            <a:support event="onblur" reRender="tanidikTelField"
                                bypassUpdates="true" ajaxSingle="true" />
                        </h:inputText></td>

                    </tr>
                </table>
            </s:decorate>
            <div style="clear: both">
       <h:panelGrid   columns="5">
       <f:facet name="header">
    <h:outputText value="İşverenle iletişiminizin hangi kanallarla olmasını tercih edersiniz?"/>
  </f:facet>
            <h:panelGroup>
   <h:outputText value="Elektronik posta" /> 
   <h:selectBooleanCheckbox value="#{kullaniciHome.instance.iletisimTipiEposta}" />
            </h:panelGroup>
<h:panelGroup >
            
   <h:outputText value="Ev Telefonu" styleClass="yaziBold"/> 
   <h:selectBooleanCheckbox value="#{kullaniciHome.instance.iletisimTipiEv}" />
</h:panelGroup>
<h:panelGroup>

   <h:outputText value="Gsm  " styleClass="yaziBold"/> 
   <h:selectBooleanCheckbox value="#{kullaniciHome.instance.iletisimTipiGsm}" />
</h:panelGroup>
<h:panelGroup>

   <h:outputText value="İş Telefonu" styleClass="yaziBold"/> 
   <h:selectBooleanCheckbox value="#{kullaniciHome.instance.iletisimTipiIs}" />
</h:panelGroup>
<h:panelGroup>

   <h:outputText value="Msn" styleClass="yaziBold"/> 
   <h:selectBooleanCheckbox value="#{kullaniciHome.instance.iletisimTipiMsn}" />
</h:panelGroup>

    </h:panelGrid>
                      </div>
            
			<div style="clear: both"><span class="required" >*</span>
			Zorunlu Alanlar</div>
		</rich:panel>

		<div class="actionButtons"><h:commandButton id="save"
			value="#{messages.btnKaydetVeDevam}"
			 action="#{kullaniciHome.doIK02}" /></div>
		</h:form>


	</ui:define>
</ui:composition>
